home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / mail / mh / contrib / 9209 / addsig < prev    next >
Text File  |  1992-09-20  |  694b  |  32 lines

  1. #!/bin/sh
  2. #
  3. # @(#)addsig    1.2 of 92/09/10
  4. #
  5. # addsig: add a users signature file to the end of a message.  This is
  6. #         an "editor" to be used from the whatnow prompt in MH.
  7. #
  8. # Subject: Re: Anonymous ftp archive of MH scripts and files 
  9. # Date: Thu, 10 Sep 92 22:12:50 -0400
  10. # From: "David J. Fiander" <golem!davidf@uunet.UU.NET>
  11. # Here is the signature appending "editor" for which I appear in the
  12. # FAQ.
  13.  
  14.  
  15. if [ -f `mhpath +`/Signature ]
  16. then
  17.     sigfile=`mhpath +`/Signature
  18. elif [ -f "$HOME/.signature" ]
  19. then
  20.     sigfile="$HOME/.signature"
  21. elif [ -f "$HOME/.sig" ]
  22. then
  23.     sigfile="$HOME/.sig"
  24. else
  25.     echo "No Signature file exists!" >&2
  26.     exit 1
  27. fi
  28.  
  29. echo '\n--' | cat - $sigfile >>$1
  30. exit 0
  31.